package com.example.wordroom

import androidx.room.*

@Dao
interface WordDao {

    @Insert
    suspend fun insertWords(vararg words: Word)

    @Update
    suspend fun updateWord(word:Word)

    @Delete
    suspend fun deleteWord(word: Word)

    @Query("select * from tb_word")
    suspend fun loadAllWords(): Array<Word>

}